﻿using UnityEngine;
using System.Collections;

public class Item : MonoBehaviour {
	[SerializeField]
	protected string iname;
	/// <summary>
	/// 物品名称
	/// </summary>
	/// <value>The name.</value>
	public string Name{ get{ return iname; } }

	/// <summary>
	/// 物品对应的预设体
               	/// </summary>
	public GameObject prefab{
		get{ return ItemManager.ItemMan.getPrefabInAllObj (iname);}
	}

	//[SerializeField]
	//protected bool consumable;
	// 是否为消耗品
	//public bool Consumable{get{return consumable;}}

	/// <summary>
	/// UI显示时摄像机到物体的距离
	/// </summary>
	public float cameraDistance;

	/// <summary>
	/// UI显示时摄像机到物体的距离
	/// </summary>
	public float showScale = 1f;

}
